package cn.edu.scau.cmi.wujiaxian.composite.safe;


public abstract class Organization {

	private Organization parent;
	
	private String name;
	
	public Organization(Organization parent, String name) {
		this.parent = parent;
		this.name = name;
	}

	public Organization getParent() {
		return parent;
	}

	public void setParent(Organization parent) {
		this.parent = parent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return toString(1);
	}
	
	abstract String toString(int cent);
}
